﻿using PMS.Data.Entities.Customers;
using PMS.Data.Entities.Localization;

namespace PMS.Services.SharedKernel
{
    /// <summary>
    /// Represents work context
    /// </summary>
    public interface IWorkContext
    {
        /// <summary>
        /// Gets or sets the current customer
        /// </summary>
        Customer CurrentCustomer { get; set; }

        /// <summary>
        /// Gets or sets current user working language
        /// </summary>
        Language WorkingLanguage { get; set; }

        /// <summary>
        /// 同一账号(Customer)切换前/后端(会员中心及后台管理)
        /// true:  用户当前访问的是后台管理页
        /// false: 用户当前访问的是非后台管理(既前端展示页)
        /// </summary>
        bool IsAdminArea { get; set; }

        /// <summary>
        /// 会员管理中心(需要登录认证)
        /// </summary>
        bool IsGuestsArea { get; set; }
    }
}
